package LeetCode.month02.day38;

public class No392 {
    public boolean isSubsequence(String s, String t) {
        int n1 = s.length();
        int n2 = t.length();
        int index = 0;
        int index2  =0;
        while(index<n1&&index2<n2){
            if(s.charAt(index)==t.charAt(index2)){
                index++;
            }
            index2++;
        }
        if(index==n1) return true;
        return false;
    }
}
